﻿/*****************************************************************
 *@Copyright all rights reserved © 2014 Yuga
 *@author YUga studio
 *Contact: zengkang007@gmail.com
 *****************************************************************/
package com.oplink.webbase.modules.invoicing.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.oplink.webbase.modules.invoicing.entity.SubStock;

/**
 * 告警DAO接口
 * 
 * @author YUga studio
 * @version 2015-01-12
 */
public interface SubStockDao extends CrudRepository<SubStock, Long> {

	@Modifying
	@Query("update SubStock set delFlag='" + SubStock.DEL_FLAG_DELETE + "' where id = ?1")
	public int deleteById(Long id);

}

/**
 * DAO自定义接口
 * 
 * @author YUga studio
 */
/*
 * interface SubStockDaoCustom extends BaseDao<SubStock> {
 * 
 * }
 *//**
 * DAO自定义接口实现
 * 
 * @author YUga studio
 */
/*
 * @Component
 * class SubStockDaoImpl extends BaseDaoImpl<SubStock> implements SubStockDaoCustom {
 * 
 * }
 */